﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using HotelManagement._04.OBJECT;
using HotelManagement._03.DAO;

namespace HotelManagement._02.BUS
{
    class CustomerServiceBUS
    {
        CustomerServiceDAO m_CustomerServiceDAO = new CustomerServiceDAO();
        public DataTable ViewCustomerService()
        {
            return m_CustomerServiceDAO.ViewCustomerService("pr_tblCustomerService_SelectAll");
        }
        public bool AddCustomerService(CustomerService ip_CustomerService)
        {
            return m_CustomerServiceDAO.AddCustomerService(ip_CustomerService, "pr_tblCustomerService_Insert");
        }
        public bool UpdateCustomerService(CustomerService ip_CustomerService)
        {
            return m_CustomerServiceDAO.UpdateCustomerService(ip_CustomerService, "pr_tblCustomerService_Update");
        }
        public bool DeleteCustomerService(CustomerService ip_CustomerService)
        {
            return m_CustomerServiceDAO.DeleteCustomerService(ip_CustomerService, "pr_tblCustomerService_DeleteRow");
        }
        public DataTable SearchCustomerService(string ip_KeyWord)
        {
            return m_CustomerServiceDAO.SearchCustomerService(ip_KeyWord, "pr_tblCustomerService_Search");
        }
    }
}
